widget: Add transfer annotation for gtk_widget_set_window
authorJürg Billeter <j@bitron.ch>
Thu, 11 Aug 2011 08:21:10 +0000 (10:21 +0200)
committerJürg Billeter <j@bitron.ch>
Thu, 11 Aug 2011 10:35:46 +0000 (12:35 +0200)
gtk_widget_set_window does not add any reference to the window and
unrealize will destroy it.

gtk/gtkwidget.c

index 95422621b8d274e3bf65af192441c397211c5767..8f5d6ff263f9a131fe767782798b71ed818d5c92 100644 (file)
@@ -14038,7 +14038,7 @@ gtk_widget_get_requisition (GtkWidget      *widget,
 /**
  * gtk_widget_set_window:
  * @widget: a #GtkWidget
- * @window: a #GdkWindow
+ * @window: (transfer full): a #GdkWindow
  *
  * Sets a widget's window. This function should only be used in a
  * widget's #GtkWidget::realize implementation. The %window passed is